package com.huihui.vueadminapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * (SysUserRole)表实体类
 *
 * @author liyonghui
 * @since 2022-04-14 14:09:18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "")
@SuppressWarnings("serial")
public class SysUserRole extends Model<SysUserRole> implements Serializable {
    private static final long serialVersionUID = 632770319339687433L;

    @ApiModelProperty("主键ID")
    @TableId(value="id",type= IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("角色ID")
    private Long roleId;
}

